<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <script type="text/javascript" src="../jsunit/app/jsUnitCore.js"></script>
    <script type="text/javascript" src="../../src/objx.test.js"></script>
    <script type="text/javascript" src="../../src/objx.js"></script>
    <script type="text/javascript">
        
        function test_exceptionClass()
        {
        
            var exceptionMessage = "This is a test exception.";
            var exceptionComment = "This is the instance comment of my test exception.";
            var MyException = objx.exceptionClass(exceptionMessage);
            
            assertEquals(exceptionMessage, MyException.message);
            
            var inst = new MyException(exceptionComment);
            
            assertEquals(exceptionMessage, inst.message);
            assertEquals(exceptionComment, inst.comment);
        
        }
        
    </script>
</head>
<body>
</body>
</html>